<?php
use app\common\model\user\User;
use think\facade\Env;
use think\facade\Route;

/**
 * 系统服务配置
 */
return [
    'mail' => [
        'host' => Env::get('smtp.host', 'smtp.163.com'),
        'port' => Env::get('smtp.port', '25'),
        'protocol' => Env::get('smtp.protocol', ''),
        'username' => Env::get('smtp.username', ''),
        'password' => Env::get('smtp.password', '')
    ],
    'user' => [
        'identityClass' => User::class,
        'encryptSlat' => 'abcdefj',
        'enableAutoLogin' => true,
        'authTimeout' => 1440, //该值不能超出session配置的时效
        'autoRenewCookie' => true, //刷新cookie登录凭证
        'absoluteAuthTimeout' => null //绝对超时
    ],
];